"""Deleted order users table

Revision ID: 502239f88793
Revises: b1998be26387
Create Date: 2024-03-26 18:08:59.639341

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "502239f88793"
down_revision = "b1998be26387"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table("orders_users")
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "orders_users",
        sa.Column("order_id", sa.INTEGER(), autoincrement=False, nullable=True),
        sa.Column("user_id", sa.INTEGER(), autoincrement=False, nullable=True),
        sa.ForeignKeyConstraint(["order_id"], ["order.id"], name="fk_orders_users_order_id_order"),
        sa.ForeignKeyConstraint(["user_id"], ["user.id"], name="fk_orders_users_user_id_user"),
    )
    # ### end Alembic commands ###
